#include<stdio.h>
int check(int a,int b,int c)
{
    if(a==b&&b==c&&c==a)
    {
        printf ("Equilateral triangle!");
        return 0;
    }
    else if(a==b||b==c||c==a)
    {
        printf ("Isosceles triangle!");
            return 0;
    }
    else
        return 1;
}
int main ()
{
    int a = 0;
    int b = 0;
    int c = 0;
    int ret = 2;
    
   while( scanf("%d %d %d",&a,&b,&c)!=EOF)
   {
       if(a<b+c&&b<a+c&&c<a+b)
       {
           ret = check(a,b,c);
           
           if(ret == 1)
           {
               printf ("Ordinary triangle!");
           }
       }
       
       else
       {
           printf ("Not a triangle!");
       }
       printf ("\n");
   }
    
}